﻿using System;
using System.Web.UI.WebControls;
using BLL.RF.Package;

public partial class ViewbyProduct_ViewPackage_ViewPackintoBox_WithoutUpload_byDT : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindData();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        BindData();
    }

    private void BindData()
    {
        PackintoBoxItem_WithoutUpload pt = new PackintoBoxItem_WithoutUpload();
        DateTime dt1 = DateTime.Parse(this.TextBox1.Value.Trim());
        DateTime dt2 = DateTime.Parse(this.TextBox2.Value.Trim());
        this.GridView1.DataSource = pt.GetPackintoBoxItem_WithoutUpload_byDT(dt1, dt2);
        this.GridView1.DataBind();
    }
}
